Optimal. Leaf size=119 \[ -\frac {4 e^{2 i a d} (e x)^{1+m} \left (c x^n\right )^{2 i b d} \, _2F_1\left (2,-\frac {i (1+m)-2 b d n}{2 b d n};-\frac {i (1+m)-4 b d n}{2 b d n};e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )}{e (1+m+2 i b d n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4606, 4602,
371} \begin {gather*} -\frac {4 e^{2 i a d} (e x)^{m+1} \left (c x^n\right )^{2 i b d} \, _2F_1\left (2,-\frac {i (m+1)-2 b d n}{2 b d n};-\frac {i (m+1)-4 b d n}{2 b d n};e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )}{e (2 i b d n+m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 4602
Rule 4606
Rubi steps
\begin {align*} \int (e x)^m \csc ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx &=\frac {\left ((e x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int x^{-1+\frac {1+m}{n}} \csc ^2(d (a+b \log (x))) \, dx,x,c x^n\right )}{e n}\\ &=-\frac {\left (4 e^{2 i a d} (e x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int \frac {x^{-1+2 i b d+\frac {1+m}{n}}}{\left (1-e^{2 i a d} x^{2 i b d}\right )^2} \, dx,x,c x^n\right )}{e n}\\ &=-\frac {4 e^{2 i a d} (e x)^{1+m} \left (c x^n\right )^{2 i b d} \, _2F_1\left (2,-\frac {i (1+m)-2 b d n}{2 b d n};-\frac {i (1+m)-4 b d n}{2 b d n};e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )}{e (1+m+2 i b d n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(534\) vs. \(2(119)=238\).
time = 6.57, size = 534, normalized size = 4.49 \begin {gather*} \frac {x (e x)^m \csc \left (d \left (a+b \left (-n \log (x)+\log \left (c x^n\right )\right )\right )\right ) \csc \left (b d n \log (x)+d \left (a+b \left (-n \log (x)+\log \left (c x^n\right )\right )\right )\right ) \sin (b d n \log (x))}{b d n}-\frac {(1+m) x^{-m} (e x)^m \csc \left (d \left (a+b \left (-n \log (x)+\log \left (c x^n\right )\right )\right )\right ) \left (\frac {x^{1+m} \csc \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \sin (b d n \log (x))}{1+m}-\frac {i e^{-\frac {(1+2 m) \left (a+b \left (-n \log (x)+\log \left (c x^n\right )\right )\right )}{b n}} \left (i e^{\frac {a+2 a m+b (1+m) n \log (x)+b (1+2 m) \left (-n \log (x)+\log \left (c x^n\right )\right )}{b n}} (1+m+2 i b d n) \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right )-e^{\frac {a+2 a m+b (1+m) n \log (x)+b (1+2 m) \left (-n \log (x)+\log \left (c x^n\right )\right )}{b n}} (1+m+2 i b d n) \, _2F_1\left (1,-\frac {i (1+m)}{2 b d n};1-\frac {i (1+m)}{2 b d n};e^{2 i d \left (a+b \log \left (c x^n\right )\right )}\right )-e^{\frac {a (1+2 m+2 i b d n)}{b n}+(1+m+2 i b d n) \log (x)+\frac {(1+2 m+2 i b d n) \left (-n \log (x)+\log \left (c x^n\right )\right )}{n}} (1+m) \, _2F_1\left (1,-\frac {i (1+m+2 i b d n)}{2 b d n};-\frac {i (1+m+4 i b d n)}{2 b d n};e^{2 i d \left (a+b \log \left (c x^n\right )\right )}\right )\right ) \sin \left (d \left (a+b \left (-n \log (x)+\log \left (c x^n\right )\right )\right )\right )}{(1+m) (1+m+2 i b d n)}\right )}{b d n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \left (e x \right )^{m} \left (\csc ^{2}\left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (e x\right )^{m} \csc ^{2}{\left (a d + b d \log {\left (c x^{n} \right )} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (e\,x\right )}^m}{{\sin \left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________